package com.imclient.headler;

import com.imclient.message.Message;
import com.imclient.server.HeadlerServer;
import com.imclient.type.HeaderType;
import com.imclient.type.PushType;

public abstract class ResultHeadler extends AbstractHeadler{

	@Override
	public PushType getPushType() {
		return PushType.TRACK;
	}

	@Override
	public void receive(Message msg, HeadlerServer hs) {
		String messageid = msg.getHeader(HeaderType.Messageid.name());
		String result = msg.getHeader(HeaderType.Result.name());
		track( messageid, result);
	}
	
	public abstract void track(String messageid,String result);

}
